<?php
/*
*	连接数据库
*/

	//databese connect
	$dbname = 'MwCNaGiQEjrlngTnmnIJ';
	$host = 'sqld.duapp.com';
	$port = 4050;
	$user = 'XXXXXXXXXXXXXXXXXXXXXXXX';
	$pwd = 'XXXXXXXXXXXXXXXXXXXXXXXXX';	
	$db = mysql_connect("{$host}:{$port}",$user,$pwd,true);
	if(!$db) {	die("Connect Server Failed: " . mysql_error());	}
	if(!mysql_select_db($dbname,$db)) {		die("Select Database Failed: " . mysql_error($db));	}
	mysql_query("SET NAMES 'utf8'");
	

?>